const HtmlWebpackPlugin = require('html-webpack-plugin');

module.exports = {
  entry: {
	  index: ['./src/js/index.js', './src/scss/index.scss'],
	  personal: ['./src/js/personal.js', './src/scss/personal.scss'],
	  case: ['./src/js/case.js', './src/scss/case.scss'],
	  game: ['./src/js/game.js', './src/scss/game.scss'],
	  inner: ['./src/js/inner.js', './src/scss/inner.scss']
    // index: ['./src/scss/index.scss', './src/js/index.js'],
    // login: ['./src/scss/login.scss', './src/js/login.js']
  },
  plugins: [
    new HtmlWebpackPlugin({
      template: "./src/html/index.html",
      filename: "index.html",
      chunks: ["index"]
    }),
    new HtmlWebpackPlugin({
      template: "./src/html/personal.html",
      filename: "personal.html",
      chunks: ["personal"]
    }),
	new HtmlWebpackPlugin({
	  template: "./src/html/case.html",
	  filename: "case.html",
	  chunks: ["case"]
	}),
	new HtmlWebpackPlugin({
	  template: "./src/html/inner.html",
	  filename: "inner.html",
	  chunks: ["inner"]
	}),
	new HtmlWebpackPlugin({
	  template: "./src/html/game.html",
	  filename: "game.html",
	  chunks: ["game"]
	})
  ]
}
